<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
	xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
	 <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-project-edit" th:object="${projectUser}">
			<div class="form-group">	
				<label class="col-sm-3 control-label">账号：</label>
				<div class="col-sm-8">
				    <input id="projectId" name="projectId"   th:field="*{projectId}" type="hidden">
					<input id="projectId" name="userId"  th:field="*{userId}"  type="hidden">
					<input id="userName" name="userName" class="form-control m-b"  th:field="*{userName}" type="text" readonly>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">角色：</label>
				<div class="col-sm-8">
				  <select name="roleId"  class="form-control m-b"   th:field="*{roleId}">
				      <option value="5">观察者</option>
				      <option value="6">编辑者</option>
				  </select>
				</div>
			</div>
		</form>
	</div>
	<div th:include="include :: footer"></div>
	<script type="text/javascript">
		var prefix = ctx + "system/project"
		$("#form-project-add").validate({
			rules:{
				projectName:{
					required:true,
				}
			}
		});
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/editUserSave", $('#form-project-edit').serialize());
	        }
	    }
	</script>
</body>
</html>